package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {

        @RequestMapping("login")
        public String login(String  username,String password){
            if ("admin".equals(username)&&"123".equals(password)){
                    //登陆成功跳转success
                    return "success.jsp";
            }
            //登录失败跳转error
            return "error.jsp";
        }
}
